import { useReducer } from "react";
import undo from "../utils/undo";

const useUndoReducer = (reducer, initialstate) =>
  useReducer(undo(reducer), initialstate);
export default useUndoReducer;
